<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>审核注册信息</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="assets/layui/css/layui.css">
	<link rel="stylesheet" href="assets/css/all.css" />
	<link rel="stylesheet" href="assets/css/uploadimg.css" />
</head>
<body class="register">
<div class="layui-layout layui-layout-admin">
	<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
	<!--[if lt IE 9]>
		  <script src="assets/js/html5.min.js"></script>
		  <script src="assets/js/respond.min.js"></script>
		<![endif]-->
	<div class="layui-container" style="width:998px;margin:20px auto;padding:20px;border:1px solid #009688;background-color: #f9f9f9;border-radius: 10px;">
		<form class="layui-form" action="" onsubmit="return false;">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">账号</label>
					<div class="layui-input-inline">
						<input id="regaccount" type="text" name="" lay-verify="required|regaccount" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">密码</label>
					<div class="layui-input-inline">
						<input id="regpass" type="text" name="" lay-verify="required|regpass" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label">确认密码</label>
					<div class="layui-input-inline">
						<input id="regpassagain" type="text" name="" lay-verify="required|regpassagain" autocomplete="off" class="layui-input">
					</div>
				</div>	
				<div class="layui-inline">
					<label class="layui-form-label layui-elip">邀请码 </label>
					<div class="layui-input-inline">
						<input type="text" name="" lay-verify="required" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label layui-elip">联系人 </label>
					<div class="layui-input-inline">
						<input type="text" name="" lay-verify="required" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label layui-elip">联系电话</label>
					<div class="layui-input-inline">
						<input type="text" name="" lay-verify="required|regphone" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">公司地址</label>
					<div class="layui-input-inline">
						<input id="detail-location" style="width:590px" type="text" name="detailid" placeholder="详细地址" autocomplete="off" class="layui-input" value="">
					</div>
				</div>
			</div>
			<div class="layui-upload">
			  <button type="button" class="layui-btn" id="upyyzz">营业执照：</button>
			  <div class="layui-upload-list">
			    <img class="layui-upload-img" id="img1" src="assets/img/car.png">
			    <!--<p id="upyyzztip"></p>-->
			  </div>
			</div>  
			<div class="layui-upload">
			  <button type="button" class="layui-btn" id="upkhxk">开户许可证：</button>
			  <div class="layui-upload-list">
			    <img class="layui-upload-img" id="img2" src="assets/img/car.png">			    
			    <!--<p id="upkhxktip"></p>-->
			  </div>
			</div>  
			<div class="car-img">			
				<div class="layui-upload imgupload layui-clear">
					<button type="button" class="layui-btn" id="res-up-btn"></button>
					<blockquote class="layui-elem-quote layui-quote-nm layui-clear" style="border:none">图片展示:
						<div class="layui-upload-list" id="pics-wrap">
							 <img src="assets/img/car.png" class="layui-upload-img" alt="car.png" />
						</div>
					</blockquote>
				</div>
			</div>
			<!--<div class="layui-form-item reason" style="display: none;">
				<div class="layui-inline">
					<label class="layui-form-label">驳回原因</label>
					<div class="layui-input-inline">
						<textarea class="layui-textarea" style="width:640px;height:100px;"></textarea>	
					</div>
				</div>
			</div>-->
			<div class="layui-row reason" style="display: none;margin:0 34px;">
				<div class="layui-col-sm1">驳回原因:</div>
				<div class="layui-col-sm11">
					<textarea class="layui-textarea" style="width:640px;height:100px;"></textarea>					
				</div>
			</div>
			<div style="text-align: center;margin:20px auto;">
				<button class="layui-btn">审核通过</button>
				<button class="layui-btn" id="unpass">驳  回</button>
			</div>
		</form>
	</div>
</div>
	<script src="assets/layui/layui.js"></script>
	<script type="text/javascript" src="assets/js/all.js"></script>
	<script type="text/javascript">
		layui.use(['form','layer','upload'],function(){
			var form = layui.form,
				layer = layui.layer,
				upload = layui.upload,
				$ = layui.$
			//注册页面js
			
			//驳回
			$("#unpass").on("click",function(){
				$(".reason").show();
			});
			//自定义验证规则
			form.verify({
				regpass: [/(.+){6,12}$/, '密码必须6到12位'],
				regpassagain:function(value){
					if(value != $("#regpass").val()){
						$("#regpassagain").val('');
						return '确认密码与密码不一致';
					}
				}
			});
			
		})
	</script>
</body>
</html>
